<div id="dialog-form" title="Add smth">
<form action="" name="generated-form" id="generated-form" method="post">
</form>
</div>
<div id="ok-message-box">
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
	$("#ok-message-box").dialog({
		position: ['center', 'center'],
	    autoOpen: false,
		height: 35,
		width: 'auto',
	    modal: true,
	    create: function (event, ui) {
	        $(".ui-widget-header").hide();
	    },
	});
});
</script>